Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Yes and No

If you are asking as a user, and/or if you are talking about an out-of-the-box solution, then the answer is no.

But as a developer, you can of course write an agent that will do that.
The agent will act on selected document. Use the UnprocessedDocuments property of the NotesDatabase class to get a NotesDocumentCollection of the selected documents.
Then you just loop through the documents in that collection, open each one as a NotesUIDocument (you can only print using the UI classes), print it, close it again. Get the body field as a NotesRichTextItem object from the NotesDocument object.
Now you can use the EmbeddedObjects property of the NotesRichTextItem to get the attachments. You need to detach the attachments (preferably to a temp directory, I would suggest using the Environ() function to get the %TEMP% directory path.
After you detach each attachments, you print them and remove them from the temp directory.
Depending on the file type, you may have to write different code to print them using the proper program.
Or you could use a utility like ClassExec to print using a commandline. Use the Shell() function to do that.
http://www.robvanderwoude.com/ddecommandline.php#ClassExec


Feedback response number WEBB9KHK6B created by ~Dan Kikiterobu on 05/27/2014

Printing mails and attachments (~Kim Elfoozenet... 27.May.14)
. . Yes and No (~Dan Kikiterobu... 27.May.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS